﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class SpiceMethod.SpiceInstance
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class SpiceMethod.SpiceInstance
   ">
    <meta name="generator" content="docfx 2.52.0.0">
    
    <link rel="shortcut icon" href="../api/images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> 
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <script type="text/javascript" async="" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
    
    
    
  </head>  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../api/images/favicon.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance">
  
  
  <h1 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance" class="text-break">Class SpiceMethod.SpiceInstance
  </h1>
  <div class="markdown level0 summary"><p>An instance of a Spice-based integration method.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">SpiceMethod.SpiceInstance</span></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.Gear.Instance.html">Gear.Instance</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.Trapezoidal.Instance.html">Trapezoidal.Instance</a></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.IBreakpointMethod.html">IBreakpointMethod</a></div>
    <div><a class="xref" href="SpiceSharp.Simulations.IIntegrationMethod.html">IIntegrationMethod</a></div>
    <div><a class="xref" href="SpiceSharp.Simulations.ISimulationState.html">ISimulationState</a></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.html">SpiceSharp.Simulations.IntegrationMethods</a></h6>
  <h6><strong>Assembly</strong>: SpiceSharp.dll</h6>
  <h5 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected abstract class SpiceInstance : IBreakpointMethod, IIntegrationMethod, ISimulationState</code></pre>
  </div>
  <h3 id="constructors">Constructors
  </h3>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance__ctor_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.#ctor*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance__ctor_SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceSharp_Simulations_IBiasingSimulationState_System_Int32_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.#ctor(SpiceSharp.Simulations.IntegrationMethods.SpiceMethod,SpiceSharp.Simulations.IBiasingSimulationState,System.Int32)">SpiceInstance(SpiceMethod, IBiasingSimulationState, Int32)</h4>
  <div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.html">SpiceMethod.SpiceInstance</a> class.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected SpiceInstance(SpiceMethod parameters, IBiasingSimulationState state, int maxOrder)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.html">SpiceMethod</a></td>
        <td><span class="parametername">parameters</span></td>
        <td><p>The method description.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IBiasingSimulationState.html">IBiasingSimulationState</a></td>
        <td><span class="parametername">state</span></td>
        <td><p>The biasing simulation state.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">maxOrder</span></td>
        <td><p>The maximum order.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
  </h3>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_BaseTime_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.BaseTime*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_BaseTime" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.BaseTime">BaseTime</h4>
  <div class="markdown level1 summary"><p>Gets the base timepoint in seconds from which the current timepoint is being probed.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double BaseTime { get; protected set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The base time.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Break_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Break*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Break" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Break">Break</h4>
  <div class="markdown level1 summary"><p>Gets a value indicating whether this point is the first after a breakpoint.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public bool Break { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Breakpoints_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Breakpoints*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Breakpoints" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Breakpoints">Breakpoints</h4>
  <div class="markdown level1 summary"><p>Gets the breakpoint system.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public Breakpoints Breakpoints { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.Breakpoints.html">Breakpoints</a></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Delta_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Delta*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Delta" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Delta">Delta</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double Delta { get; protected set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_MaxOrder_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.MaxOrder*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_MaxOrder" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.MaxOrder">MaxOrder</h4>
  <div class="markdown level1 summary"><p>Gets the maximum order of the integration method.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int MaxOrder { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>The maximum order.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Order_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Order*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Order" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Order">Order</h4>
  <div class="markdown level1 summary"><p>Gets or sets the current order of the integration method.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public int Order { get; set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><p>The current order.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Parameters_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Parameters*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Parameters" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Parameters">Parameters</h4>
  <div class="markdown level1 summary"><p>Gets the parameters.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected SpiceMethod Parameters { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.html">SpiceMethod</a></td>
        <td><p>The parameters.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Prediction_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Prediction*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Prediction" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Prediction">Prediction</h4>
  <div class="markdown level1 summary"><p>Gets the prediction.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected IVector&lt;double&gt; Prediction { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Algebra.IVector-1.html">IVector</a>&lt;<span class="xref">System.Double</span>&gt;</td>
        <td><p>The prediction.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_RegisteredStates_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.RegisteredStates*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_RegisteredStates" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.RegisteredStates">RegisteredStates</h4>
  <div class="markdown level1 summary"><p>Gets the registered states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected List&lt;IIntegrationState&gt; RegisteredStates { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="SpiceSharp.Simulations.IIntegrationState.html">IIntegrationState</a>&gt;</td>
        <td><p>The registered states.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Slope_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Slope*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Slope" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Slope">Slope</h4>
  <div class="markdown level1 summary"><p>Gets the derivative factor of any quantity that is being derived
by the integration method.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double Slope { get; protected set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The slope.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_State_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.State*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_State" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.State">State</h4>
  <div class="markdown level1 summary"><p>Gets the simulation state that keeps track of the simulation.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected IBiasingSimulationState State { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IBiasingSimulationState.html">IBiasingSimulationState</a></td>
        <td><p>The simulation.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_States_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.States*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_States" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.States">States</h4>
  <div class="markdown level1 summary"><p>Gets the history of integration states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected IHistory&lt;SpiceIntegrationState&gt; States { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IHistory-1.html">IHistory</a>&lt;<a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.SpiceIntegrationState.html">SpiceIntegrationState</a>&gt;</td>
        <td><p>The history of integration states.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Time_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Time*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Time" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Time">Time</h4>
  <div class="markdown level1 summary"><p>Gets the currently probed timepoint in seconds.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double Time { get; protected set; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The current time.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_TruncatableStates_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.TruncatableStates*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_TruncatableStates" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.TruncatableStates">TruncatableStates</h4>
  <div class="markdown level1 summary"><p>Gets the truncatable states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected List&lt;ITruncatable&gt; TruncatableStates { get; }</code></pre>
  </div>
  <h5 class="propertyValue">Property Value</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Collections.Generic.List</span>&lt;<a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.ITruncatable.html">ITruncatable</a>&gt;</td>
        <td><p>The truncatable states.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
  </h3>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Accept_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Accept*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Accept" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Accept">Accept()</h4>
  <div class="markdown level1 summary"><p>Accepts a solution at the current timepoint.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Accept()</code></pre>
  </div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_ComputeCoefficients_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.ComputeCoefficients*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_ComputeCoefficients" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.ComputeCoefficients">ComputeCoefficients()</h4>
  <div class="markdown level1 summary"><p>Computes the integration coefficients.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected abstract void ComputeCoefficients()</code></pre>
  </div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_CreateDerivative_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.CreateDerivative*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_CreateDerivative_System_Boolean_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.CreateDerivative(System.Boolean)">CreateDerivative(Boolean)</h4>
  <div class="markdown level1 summary"><p>Creates a derivative.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract IDerivative CreateDerivative(bool track)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><span class="parametername">track</span></td>
        <td><p>If set to <code>true</code>, the integration method will use this state to limit truncation errors.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IDerivative.html">IDerivative</a></td>
        <td><p>The derivative.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Evaluate_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Evaluate*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Evaluate_System_Double_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Evaluate(System.Double)">Evaluate(Double)</h4>
  <div class="markdown level1 summary"><p>Evaluates the current solution at the probed timepoint. If the solution is invalid,
the analysis should roll back and try again.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool Evaluate(double maxTimestep)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">maxTimestep</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the current solution is a valid solution; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.TimestepTooSmallException.html">TimestepTooSmallException</a></td>
        <td><p>Thrown when the timestep is too small.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_GetPreviousSolution_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.GetPreviousSolution*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_GetPreviousSolution_System_Int32_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.GetPreviousSolution(System.Int32)">GetPreviousSolution(Int32)</h4>
  <div class="markdown level1 summary"><p>Gets a previous solution used by the integration method. An index of 0 indicates the last accepted solution.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public IVector&lt;double&gt; GetPreviousSolution(int index)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td><p>The number of points to go back.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Algebra.IVector-1.html">IVector</a>&lt;<span class="xref">System.Double</span>&gt;</td>
        <td><p>The previous solution.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_GetPreviousTimestep_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.GetPreviousTimestep*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_GetPreviousTimestep_System_Int32_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.GetPreviousTimestep(System.Int32)">GetPreviousTimestep(Int32)</h4>
  <div class="markdown level1 summary"><p>Gets a previous timestep. An index of 0 indicates the current timestep.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public double GetPreviousTimestep(int index)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">index</span></td>
        <td><p>The number of points to go back.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><p>The previous timestep.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Initialize_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Initialize*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Initialize" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Initialize">Initialize()</h4>
  <div class="markdown level1 summary"><p>Initializes the integration method using the allocated biasing state.
At this point, all entities should have received the chance to allocate and register integration states.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Initialize()</code></pre>
  </div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Predict_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Predict*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Predict" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Predict">Predict()</h4>
  <div class="markdown level1 summary"><p>Predicts a solution for truncation.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected abstract void Predict()</code></pre>
  </div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Prepare_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Prepare*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Prepare" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Prepare">Prepare()</h4>
  <div class="markdown level1 summary"><p>Prepares the integration method for calculating the next timepoint.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Prepare()</code></pre>
  </div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Probe_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Probe*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Probe" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Probe">Probe()</h4>
  <div class="markdown level1 summary"><p>Probes a new timepoint.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Probe()</code></pre>
  </div>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_RegisterState_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.RegisterState*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_RegisterState_SpiceSharp_Simulations_IIntegrationState_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.RegisterState(SpiceSharp.Simulations.IIntegrationState)">RegisterState(IIntegrationState)</h4>
  <div class="markdown level1 summary"><p>Registers an integration state with the integration method.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void RegisterState(IIntegrationState state)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.Simulations.IIntegrationState.html">IIntegrationState</a></td>
        <td><span class="parametername">state</span></td>
        <td><p>The integration state.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Reject_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Reject*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Reject" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Reject">Reject()</h4>
  <div class="markdown level1 summary"><p>Rejects the last probed timepoint as a valid solution. This method can be called if no solution could be found (eg. due to non-convergence).</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void Reject()</code></pre>
  </div>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.TimestepTooSmallException.html">TimestepTooSmallException</a></td>
        <td><p>Thrown when the timestep became too small.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Truncate_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Truncate*"></a>
  <h4 id="SpiceSharp_Simulations_IntegrationMethods_SpiceMethod_SpiceInstance_Truncate_System_Double_" data-uid="SpiceSharp.Simulations.IntegrationMethods.SpiceMethod.SpiceInstance.Truncate(System.Double)">Truncate(Double)</h4>
  <div class="markdown level1 summary"><p>Truncate the current timestep.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public void Truncate(double maxTimestep)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Double</span></td>
        <td><span class="parametername">maxTimestep</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">maxTimestep</code> is not positive.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.IBreakpointMethod.html">IBreakpointMethod</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.IIntegrationMethod.html">IIntegrationMethod</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Simulations.ISimulationState.html">ISimulationState</a>
  </div>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="SpiceSharp.Utility.html#SpiceSharp_Utility_ThrowIfNull__1___0_System_String_">Utility.ThrowIfNull&lt;T&gt;(T, String)</a>
  </div>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="SpiceSharp.Simulations.IntegrationMethods.IBreakpointMethod.html">IBreakpointMethod</a></div>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
